@import '~antd/es/style/variable.less';

@global-color-bg: rgba(62, 110, 251, 1) !important;

html,
body,
#root {
  height: 100%;
}
.ant-btn-primary {
  background-color: @global-color-bg;
}
.ant-pro-form-login-title {
  // margin-left: 20px !important;
  color: rgba(62, 110, 251, 1) !important;
  font-weight: 500 !important;
  font-size: 28px !important;
}
.ant-pro-form-login-main {
  margin: auto;
}
.ant-pro-form-login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
// 替换 Antd Pro Header 背景色
.ant-pro-global-header {
  background-color: rgba(255, 255, 255, 1) !important;
  .ant-pro-global-header-logo h1 {
    color: black !important;
  }
  .ant-space-item span {
    color: black !important;
  }
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-width: 100vh;
  min-height: 100vh;
  overflow: scroll;
}
.ant-pro-sider {
  background-color: rgba(29, 29, 66, 1) !important;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}
.ant-pagination-item {
  margin-right: 5px !important;
  margin-left: 5px !important;
  border: 1px solid #d9d9d9 !important;
}
.ant-menu-item {
  width: 90% !important;
  margin: 10px auto !important;
  border-radius: 6px;
  .ant-pro-menu-item-title {
    color: rgba(255, 255, 255, 1);
    font-weight: 400;
    font-size: 14px;
    // letter-spacing: 0px;
    text-align: left;
    vertical-align: top;
  }
}
.ant-menu-item-selected {
  background-color: @global-color-bg;
}
.ant-modal-content button {
  border-radius: 12px;
}

/* 选中状态下的文字颜色 */
.ant-checkbox-checked + span {
  color: rgb(24, 144, 255); /* 文字颜色 */
}
.ant-form-item-label label {
  color: rgba(125, 133, 146, 1);
  font-weight: 700; /* 设置字体粗细 */
}

/* tab 定宽并且居中 */
.ant-tabs-nav .ant-tabs-tab {
  flex: 1;
  min-width: 70px;
}
.ant-tabs-tab-btn {
  min-width: 70px;
  text-align: center;
}
.ant-checkbox-checked .ant-checkbox-inner {
  background-color: rgba(24, 109, 245, 0.1) !important;
  border: rgba(24, 109, 245, 0.1) !important;
}
.ant-checkbox-checked .ant-checkbox-inner::after {
  position: absolute !important;
  display: table !important;
  border: 2px solid rgba(24, 109, 245, 1) !important;
  border-top: 0 !important;
  border-left: 0 !important;
  transform: rotate(45deg) scale(1) translate(-50%, -50%) !important;
  opacity: 1 !important;
  transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s !important;
  content: ' ' !important;
}
canvas {
  display: block;
}
.ant-pro-page-container-warp {
  display: none !important;
}

.ant-radio-button-wrapper-checked {
  color: rgba(24, 109, 245, 1) !important;
  background: rgba(24, 109, 245, 0.1) !important;
  border: none !important;
}
.ant-radio-group-solid .ant-radio-button-wrapper:not(:first-child)::before {
  display: none !important;
}
.ant-radio-button-wrapper {
  background-color: rgba(110, 110, 110, 0.1);
  border: none !important;
}
// 登录/忘记验证码 覆盖
.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap,
.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-wrap {
  flex: none;
}
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #3e6efb !important;
}
.ant-tabs-ink-bar {
  background-color: #3e6efb !important; /* 设置下划线的颜色 */
}
